package experiment3.task1;


/**
 * @author 冯永龙
 * @date 2021/3/23 20:00
 */
public class Student extends Person {
    public String clazz;

    public Student() {
    }

    public Student(Integer id, String name, String sex, String clazz) {
        super(id, name, sex);
        this.clazz = clazz;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                "clazz='" + clazz + '\'' +
                '}';
    }
}
